/**
  * 封装了nodejs 的mysql工具包，并加入了promise
  * @module 数据库连接
 * @author 徐灿
 * @date 2018-7-26
  */
const Config = require('../../../Config').Redis;
const redis = require("redis");
const client = redis.createClient({
    port: Config.rdbPort,
    host: Config.rdbHost,
    password: Config.rbdPassword
});
client.on("error", function (err) {
    console.log("Error " + err);
    // client.quit();
});


exports.client = client;
